<?php
/*
 * class for list all users with their roles
 * @author Chamara Bandara
 * @copyright Copyright &copy; 2011 Allion Technologies (Pvt) Ltd
 */

class IndexAction extends CAction {

   public function run() {

      $controller = $this->getController();
      $model = new User('search');
      $criteria = new CDbCriteria;
      $dataProvider = new CActiveDataProvider('User');
      $controller->render('index', array(
          'model' => $model,
      ));
   }
}